package com.bootdo.coach.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.bootdo.coach.dao.TabUserMsgMapper;
import com.bootdo.coach.dao.ext.ExtTabUserMsgMapper;
import com.bootdo.coach.domain.TabUserMsg;
import com.bootdo.coach.service.TabUserMsgService;


@Service
public class TabUserMsgServiceImpl implements TabUserMsgService {
    @Autowired
    private TabUserMsgMapper mapper;
    @Autowired
    private ExtTabUserMsgMapper extMapper;
    
    @Override
    public void deleteUserMsgByUserId(Long userId) {
    	extMapper.deleteUserMsgByUserId(userId);
    }
    
    @Override
    public void deleteUserMsgByMsgId(Long msgId) {
    	extMapper.deleteUserMsgByMsgId(msgId);
    }
    
    @Override
    public void insert(TabUserMsg tabUserMsg) {
    	mapper.insert(tabUserMsg);
    }
}
